﻿using GWB.Core.TableEntity.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yitter.IdGenerator;

namespace GWB.Core.TableEntity
{

    [SugarTable("Sys_Menu")]
    public class Menu: BaseEntity
    {
        /// <summary>
        /// 菜单名字
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(100)", ColumnDescription = "名字", IsNullable = true)]
        public string Name { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(100)", ColumnDescription = "图标", IsNullable = true)]
        public string Icon { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(100)", ColumnDescription = "路径", IsNullable = true)]
        public string Path { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(100)", ColumnDescription = "权限", IsNullable = true)]
        public string Access { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(100)", ColumnDescription = "全路径", IsNullable = true)]
        public string Component { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        [SugarColumn(ColumnDataType = "bigint",  ColumnDescription = "父级ID", IsNullable = false)]
        public long ParentId { get; set; }

        /// <summary>
        /// 是否显示
        /// </summary>
        [SugarColumn(ColumnDataType = "bit", ColumnDescription = "隐藏菜单", IsNullable = true)]
        public bool HideInMenu { get; set; }



        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(ColumnDataType = "int", ColumnDescription = "排序", IsNullable = true)]
        public int Sort { get; set; }
    }
}
